# @summary A short summary of the purpose of this class
#
# A description of what this class does
#
# @example
#   include lzu::gridnfsclient
class lzu::gridnfsclient {
  package { 'nfs-utils':
    ensure   => present,
    require  => Yumrepo['site']
  } 
  include autofs
  autofs::mount { 'local':
    mount   => '/ihepbatch',
    mapfile => '/etc/auto.local',
    options => '--timeout=120',
    use_dir => true,
  }
  autofs::mapfile { 'local':
    path     => '/etc/auto.local',
    mappings => [
      { 'key' => 'gridfs1', 'options' => '-fstype=nfs,soft,rsize=32768,wsize=32768,soft,intr,retrans=20,timeo=15,nfsvers=4,nosuid', 'fs' => '10.104.10.250:/gridfs1' },
    ]
  }
}
